import request from '@/utils/request'

// 查询请假管理列表
export function listAskLeave(query) {
  return request({
    url: '/schoolSys/askLeave/list',
    method: 'get',
    params: query
  })
}

// 查询请假管理详细
export function getAskLeave(id) {
  return request({
    url: '/schoolSys/askLeave/' + id,
    method: 'get'
  })
}

// 新增请假管理
export function addAskLeave(data) {
  return request({
    url: '/schoolSys/askLeave',
    method: 'post',
    data: data
  })
}

// 修改请假管理
export function updateAskLeave(data) {
  return request({
    url: '/schoolSys/askLeave',
    method: 'put',
    data: data
  })
}

// 删除请假管理
export function delAskLeave(id) {
  return request({
    url: '/schoolSys/askLeave/' + id,
    method: 'delete'
  })
}

// 查询家长列表
export function getAllpatriarch() {
  return request({
    url: '/schoolSys/teach/getAllpatriarch',
    method: 'get'
  })
}


// 查询所有学生
export function getAllStudent() {
  return request({
    url: '/schoolSys/teach/getAllStudent',
    method: 'get'
  })
}


